package com.mo.service.impl;


import com.mo.dao.SysRoleDao;
import com.mo.pojo.SysRole;
import com.mo.service.SysRoleService;
import javafx.scene.control.CheckBox;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleDao sysRoleDao;

    @Override
    public List<SysRole> findRoles(SysRole entity) {
        return sysRoleDao.selectRoles(entity);
    }

    @Override
    public SysRole findById(Integer id) {
        return sysRoleDao.selectById(id);
    }


    @Override
    public List<CheckBox> findCheckRoles() {
        return sysRoleDao.selectCheckRoles();
    }
}
